package com.wuren.faceSwiping.index.controller;

import com.wuren.faceSwiping.helper.vo.ResponseBean;
import com.wuren.faceSwiping.index.service.ProductImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/index/productimg")
@CrossOrigin("*")
public class ProductImgController {
    @Autowired
    private ProductImgService productImgService;

    /**
     * 查所有信息
     * @return
     */
    @RequestMapping("/findAll")
    public ResponseBean findAll() {
        return new ResponseBean(200, 0, productImgService.findAll());
    }
}
